﻿<%@ Page Language="C#" AutoEventWireup="false" Inherits="gms.page.admin.playermgr_edit, Game Management Library" %>
<form action="playermgr_edit.aspx?id=<%= player.player_id %>" method="post">
	<table>
		<tr>
			<td>First Name</td>
			<td><input type="text" id="player_first_name" name="player_first_name" value="<%= player.first_name %>" /></td>
		</tr>
		<tr>
			<td>Last Name</td>
			<td><input type="text" id="player_last_name" name="player_last_name" value="<%= player.last_name %>" /></td>
		</tr>
		<tr>
			<td>Email</td>
			<td><input type="text" id="player_email" name="player_email" value="<%= player.email %>" /></td>
		</tr>
	</table>
	Security Groups
	<table>
		<tr>
			<td>&nbsp;</td>
			<td>Name</td>
		</tr>
		<% for (int i = 0; i < groups.Count; i++) { %>
		<tr>
			<td><input type="checkbox" id="group_<%= i %>" name="group_<%= i %>" value="<%= groups[i].acl_id %>" <%= (player.part_of_group(groups[i].acl_id)) ? "checked=\"checked\"" : "" %> /></td>
			<td><%= groups[i].name %></td>
		</tr>
		<% } %>
	</table>
	<input type="submit" />
</form>